package com.ebupt.migu.common.pojo;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import java.io.Serializable;

/**
 * @author tz
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
public class TaskSend implements Serializable {

    /**
     * 活动编号
     */
    private String activityId;
    /**
     * 活动名称
     */
    private String activityName;
    /**
     * 营销策划ID
     */
    private String planId;
    /**
     * 营销策划名称
     */
    private String planName;
    /**
     * 审批人名称
     */
    private String appreoverName;
    /**
     * 追加测试号码
     */
    private String testCustPhone;
    /**
     * 客群id
     */
    private String customerId;
    /**
     * 客群数据类型
     * 1.phone
     * 2.imei/idfa
     * 3.uid
     */
    private Integer dataType;

    @Override
    public String toString() {
        final StringBuilder sb = new StringBuilder("{");
        sb.append("\"activityId\":\"")
                .append(activityId).append('\"');
        sb.append(",\"activityName\":\"")
                .append(activityName).append('\"');
        sb.append(",\"planId\":\"")
                .append(planId).append('\"');
        sb.append(",\"planName\":\"")
                .append(planName).append('\"');
        sb.append(",\"appreoverName\":\"")
                .append(appreoverName).append('\"');
        sb.append(",\"testCustPhone\":\"")
                .append(testCustPhone).append('\"');
        sb.append(",\"customerId\":\"")
                .append(customerId).append('\"');
        sb.append(",\"dataType\":")
                .append(dataType);
        sb.append('}');
        return sb.toString();
    }
}
